package com.yihuan.service;

import com.yihuan.entity.CityEntity;
import com.yihuan.mapper.CityMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Author:梦醒
 * Date: 2022/1/13 21:03
 * Dream:
 * 信言不美，美言不信。
 * 善者不辩，辩者不善。
 * 知者不博，博者不知。
 * Function:
 */
@Service
public class CityService {
    @Resource
    private CityMapper cityMapper;
    
    /**
     * 按省份查询城市
     *
     * @param cityEntity
     * @return
     */
    public List<CityEntity> findByCity(CityEntity cityEntity) {
        return cityMapper.findByCity(cityEntity);
    }
}
